import request from "@/util/request";

export const getChannel = () => request('/channels')
export const addArticle = data => request.post('/mp/articles?draft=false', data)
export const editArticle = data => request({
    method: 'put',
    url: `/mp/articles/${data.id}?draft=false`,
    data
})
export const getArticleById = id => request(`/mp/articles/${id}`)
